This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Hi Craig,
I have the same issue – it seems there is no way to get at this Stub class:
// Method descriptor #133 (Llotus/domino/axis/message/SOAPHeaderElement;)V
// Stack: 2, Locals: 2
void setHeader(lotus.domino.axis.message.SOAPHeaderElement arg0);
it is found in the Outline of the Eclipse Java perspective if you search it down (Shift-Ctrl-T).
This is like a typical block from my Web Service Consumer Import :
import lotus.domino.axis.message.*;
public java.lang.String myFavoriteImportedWSDLFunction(java.lang.String someString) throws java.rmi.RemoteException {
lotus.domino.websvc.client.Call _call = createCall("myFavoriteImportedWSDLFunction");
java.lang.Object _resp = _call.invoke(new java.lang.Object[] { someString});
return (java.lang.String) _call.convert(_resp, java.lang.String.class);
}
All is well as long as I don’t care about headers.
So we came up with the idea of inserting the header change while it is available:
public java.lang.String myFavoriteImportedWSDLFunction (java.lang.String someString) throws java.rmi.RemoteException {
lotus.domino.websvc.client.Call _call = createCall("myFavoriteImportedWSDLFunction ");
try {
SOAPHeaderElement pElement;
pElement= new SOAPHeaderElement("urn","someParentHeaderField");
SOAPHeaderElement cElement;
cElement= new SOAPHeaderElement("urn","someChildHeaderField ");
cElement.setValue(TheStringValueToBePlacedInHeader);
pElement.addChild(cElement);
_call.addHeader(pElement);
}catch(Exception e){
System.out.println("dumpTest");
}
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {userName});
return (java.lang.String) _call.convert(_resp, java.lang.String.class);
}
It seems there is no compatible class for modification of the header fields.
I hope I am just missing something and can get this figured out - there seems to be a lot of concern by others in this area.
Feedback response number WEBB7ZS55K created by ~Joseph Xanluettu on 01/17/2010